package com.neuedu.wemall.dao.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.apache.ibatis.type.Alias;

import java.io.Serializable;
import java.util.Date;
/**
* Author lu
* Date  2025-09-08 15:17:25
*/
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
@Alias("order")
@TableName(value = "order")
public class Order implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
    *订单ID
    */
    @TableField(value = "id")
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
    * 订单编号
    */
    @TableField(value = "order_no")
    private String orderNo;
    /**
    * 会员ID
    */
    @TableField(value = "user_id")
    private Integer userId;
    /**
    * 商品ID
    */
    @TableField(value = "prod_id")
    private Integer prodId;
    /**
    * 数量
    */
    @TableField(value = "qty")
    private Integer qty;
    /**
    * 总价
    */
    @TableField(value = "total")
    private Integer total;
    /**
    * 下单时间
    */
    @TableField(value = "create_time")
    private Date createTime;
    /**
    * 订单的状态(1:未支付;2:已取消;3:已超时;4:已支付;5:已完成)
    */
    @TableField(value = "status")
    private Integer status;
    /**
    * 收件地址
    */
    @TableField(value = "addr_id")
    private Integer addrId;
}